package com.example.service.impl;

import com.example.domain.ZoneSoil;
import com.example.mapper.ZoneSoilMapper;
import com.example.service.ZoneSoilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZoneSoilServiceImpl implements ZoneSoilService {

    @Autowired
    private ZoneSoilMapper zoneSoilMapper;

    @Override
    public List<ZoneSoil> getAll() {
        return zoneSoilMapper.getAll();
    }

    @Override
    public ZoneSoil getById(Integer zoneId) {
        return zoneSoilMapper.getById(zoneId);
    }

    @Override
    public boolean add(ZoneSoil zoneSoil) {
        return zoneSoilMapper.add(zoneSoil);
    }

    @Override
    public boolean update(ZoneSoil zoneSoil) {
        return zoneSoilMapper.update(zoneSoil);
    }

    @Override
    public boolean delete(Integer zoneId) {
        return zoneSoilMapper.delete(zoneId);
    }
}
